package com.victualler.core.config.menu.dto.request;

import com.victualler.core.common.annotation.ListPageQuery;
import com.victualler.core.common.annotation.SimpleQueryFrom;
import com.victualler.core.common.annotation.SimpleQueryWhere;
import com.victualler.core.common.enums.LinkType;

import java.io.Serializable;

/**
 * @Aouthor Guoshichang
 * @Date 11:45 on 2018/7/7.
 * @Function 通用查询对象
 */
@SimpleQueryFrom(value = "common_menu_bar menu",join = {"left join common_permission p on menu.permission_Id = p.id"})
public class MenuRequestDto implements Serializable{

    @SimpleQueryWhere(specialName = "menu.id")
    @ListPageQuery(title = "ID")
    private Long  id;

    @SimpleQueryWhere(specialName = "menu.name",linkType = LinkType.LIKE)
    @ListPageQuery(title = "菜单名称")
    private String name;

    @SimpleQueryWhere(specialName = "p.url",linkType = LinkType.LIKE)
    @ListPageQuery(title = "URL")
    private String url;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
